<?
$menu=array();
$menu[]=array("caption" => "Quản trị", "url" => '/event/admin', "css" => "trangchu");
//$menu[]=array("caption" => "Chuyên mục", "url" => '/event/cat', "css" => "tatca");

if (!isset($this->active_menu)){
    $active_menu = -1;
}
else{
    $active_menu = $this->active_menu;
}
?>
<div class="subNav">
    <?
    for ($i=0; $i<count($menu); $i++)
    {
        if ($i==$active_menu)
        {
            echo '<a href="' . $menu[$i]['url'] . '"><span class="colorOrange" style="padding:0px;">' . $menu[$i]['caption'] . '</span></a>'."\n";
        }
        else
        {
            echo '<a href="' . $menu[$i]['url'] . '">' . $menu[$i]['caption'] . '</a>'."\n";
        }
    }
    ?>
</div>